<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>thymeleaf模板应用2</title>
</head>
<body>
    <h2>我最帅</h2>
    <!--th:value="${name}"-->
    <h2 th:text="${result}">hello....</h2>



    <hr>
    <h2>封装对象el${}传值</h2>
    <h2 th:text="${dog1.name}">dogname</h2>
    <h2 th:text="${dog1.age}">dogage</h2>




    <h2>封装对象el   *{}传值</h2>
    <hr>
    <h2 th:text="*{dog1.name}">dogname</h2>
    <h2 th:text="*{dog1.age}">dogage</h2>

    <H2>封装 person对象 </H2>
    <h2 th:text="*{person1.age}">person.age</h2>
    <h2 th:text="*{person1.birthday}">person.birthday</h2>
    <h2 th:text="*{person1.dog}">person.dog</h2>



    <h2>table 遍历</h2>
    <table border="2">
        <tr th:each="person1, Iterable:${person1}">
            <td th:text="${person1.name}">person.name</td>
            <td th:text="${person1.birthday}">person.birthday</td>
            <td th:text="${person1.dog}">person.dog</td>
        </tr>
    </table>









</body>
</html>